import {postForm,get,post} from "@/utils/request";
/**
 * 新增草稿文章
 */
let addDraft = (data)=>{
    return postForm("/my/article/addDraft",data)
} 
/**
 * 新增文章
 */
let addArticle = (data)=>{
    return postForm("/my/article/add",data)
} 
/**
 * 获取文章详情
 * @param {*} data 
 * @returns 
 */
let searchArticle = (data)=>{
    return postForm("/my/article/searchArticle",data)
} 
/**
 * 获取用户文章列表
 * @param {*} data 
 * @returns 
 */
let searchArticleList = (data)=>{
    return postForm("/my/article/search",data)
} 
export{
    addDraft,
    addArticle,
    searchArticleList,
    searchArticle
}